﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShengYueWorkShop.BLL.Tcp
{
    /// <summary>
    /// TCP操作命令
    /// </summary>
    public class TcpOperationCommand
    {

        #region 属性指令集
        /// <summary>
        /// 服务器客户端超时时间1分钟
        /// </summary>
        public static int TimeOut = 3 * 60 * 1000;
        /// <summary>
        /// 数据包最大长度
        /// </summary>
        public static int BytesMaxLenght = 1024;
        /// <summary>
        /// 图片大小阈值
        /// </summary>
        public static double PicMaxMb = 1;
        /// <summary>
        /// 图片缩小比例
        /// </summary>
        public static double PicPercent = 0.1;
        /// <summary>
        /// 分隔符
        /// </summary>
        public static byte ReadDataFenGe = Convert.ToByte('@');
        #endregion
        #region 操作命令集

        /// <summary>
        /// Token传输命令
        /// </summary>
        public static string Token = "Token:";
        /// <summary>
        /// 服务异常关闭指令
        /// </summary>
        public static string Closed = "Closed:";
        /// <summary>
        /// 服务器反馈错误指令
        /// </summary>
        public static string Error = "Error:";
        /// <summary>
        /// 获取服务器当前目录下的所有文件和目录
        /// </summary>
        public static string GetList = "GetAll:";
        /// <summary>
        /// 服务器进入下一级指定目录
        /// </summary>
        public static string EnterDir = "EnterDir:";
        /// <summary>
        /// 返回上级目录
        /// </summary>
        public static string ComeOutDir = "OutDir:";
        /// <summary>
        /// 向客户端发送消息
        /// </summary>
        public static string Message = "Msg:";
        /// <summary>
        /// 获取图片并压缩
        /// </summary>
        public static string GetPicZip = "GetPicZip:";
        #endregion
    }
}
